package com.piker.pikeropen.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class ScoredHoleDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent
	private Key mGolfer;

	@Persistent
	private Key mHole;

	@Persistent
	private int mShots;

	public ScoredHoleDTO(Key key, Key golfer, Key hole, int shots) {
		super();
		mKey = key;
		mGolfer = golfer;
		mHole = hole;
		mShots = shots;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public Key getGolfer() {
		return mGolfer;
	}

	public void setGolfer(Key golfer) {
		mGolfer = golfer;
	}

	public Key getHole() {
		return mHole;
	}

	public void setHole(Key hole) {
		mHole = hole;
	}

	public int getShots() {
		return mShots;
	}

	public void setShots(int shots) {
		mShots = shots;
	}

}
